package com.creditease.priority;


public class PriorityTest {

	public static class PriorityThread extends Thread{

		public PriorityThread(String name){
			super.setName(name);
		}
		@Override
		public void run() {
			System.out.println("Thead "+getName()+" is runnable.....");
		}
	}
	
	public static void main(String[] args) {
		PriorityThread t1 = new PriorityThread("t1");
		PriorityThread t2 = new PriorityThread("t2");
		PriorityThread t3 = new PriorityThread("t3");
		
		t1.setPriority(1);
		t2.setPriority(5);
		t3.setPriority(10);
		
		t1.start();
		t2.start();
		t3.start();

	}

}
